[#include "/WEB-INF/pages/common/taglibs.ftl"]
		<form action="[@c.url value="/manage/Config_${act}.action"/]?backurl=${action.backurl}" method="post" class="stdform stdform2">
			<p>
	        	<label>名称：</label>
	            <span class="field"><input class="smallinput" placeholder="配置名称" name="config.name" value="${(config.name)!''}" [#if act=='update']disabled[/#if]/></span>
	        </p>
			<p>
	        	<label>标题：</label>
	            <span class="field"><input class="smallinput" placeholder="配置标题" name="config.title" value="${(config.title)!''}"/></span>
	        </p>
			<p>
	        	<label>可用：</label>
	            <span class="field">
	            	可用： <input type="radio" id="config_enabled_T" name="config.enabled" value="true" [#if config == null || config.isEnabled()]checked[/#if]/>
					禁用 ：<input type="radio" id="config_enabled_F" name="config.enabled" value="false" [#if config != null && !config.isEnabled()]checked[/#if]/>
				</span>
	        </p>
			[#if (config.configItemList)?? && config.configItemList.size() > 0]
				<p>
				<label class="center">配置子项目：</label>
				<span class="field" style="padding:16px 20px 6px 20px;">&nbsp;配置子项目的键为空时,系统将自动创建一个key键</span>
				[#list config.configItemList as item]
					<span class="field config_item">
						标题：<input style="width:80px;" name="config.configItemList[${item_index}].name" value="${item.name}" />
						键名：<input style="width:80px;" name="config.configItemList[${item_index}].key" value="${item.key}" />
						键值：<input style="width:80px;" name="config.configItemList[${item_index}].value" value="${item.value}" />
						<a href='${deleteItemUrl}&id=${item.id}' style="width:50px;" class='stdbtn radius2 item-delete' delId="${item.id}">删除</a>
					</span>
				[/#list]
				</p>
			[/#if]
			<p>
	        	<label>增加子项：</label>
	            <span class="field" id="addConfigItem">
	            	<button>增加</button>
				</span>
	        </p>
			<p class="stdformbutton">
   				<!--<input type="hidden" name="id" value="${(config.id)!''}" />-->
				<input type="hidden" name="id" value="${id!''}" />
		      	<button class="submit ">[#if act=='save']保&nbsp;&nbsp;存[#else]更&nbsp;&nbsp;新[/#if]</button>
		        <input type="reset" value="重&nbsp;&nbsp;置" class="reset radius2" />
		        <a class="anchorbutton button_alert" href="${action.backurl}" style="margin-left:6px;background-color: rgb(247, 247, 247); border-color: rgb(204, 204, 204); color: rgb(51, 51, 51);"><span style="background-color: rgb(255, 255, 255); border-color: rgb(221, 221, 221);">返&nbsp;&nbsp;回</span></a>
		    </p>		
		</form> 
